﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Response.Write("<h1>登录成功！</h1>");

                Response.Write("GET");
                string nameform = Request.QueryString["Name"];
                string passwordform = Request.QueryString["Password"];

                Response.Write("欢迎你，" + nameform + ",你的密码是：" + passwordform);

                Response.Write("POST");
                string nameParams = Request.Params["name"];
                string passwordParams = Request.Params["password"];

                Response.Write("欢迎你，" + nameParams + ",你的密码是：" + passwordParams);

            }
            
            
        }
    }
}